Optimal. Leaf size=221 \[ \frac {8 a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 \left (a^2-b^2\right )^2 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {8 a b \sin (c+d x)}{3 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2743, 2833,
2831, 2742, 2740, 2734, 2732} \begin {gather*} -\frac {8 a b \sin (c+d x)}{3 d \left (a^2-b^2\right )^2 \sqrt {a+b \cos (c+d x)}}-\frac {2 b \sin (c+d x)}{3 d \left (a^2-b^2\right ) (a+b \cos (c+d x))^{3/2}}-\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}+\frac {8 a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 d \left (a^2-b^2\right )^2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2743
Rule 2831
Rule 2833
Rubi steps
\begin {align*} \int \frac {1}{(a+b \cos (c+d x))^{5/2}} \, dx &=-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {2 \int \frac {-\frac {3 a}{2}+\frac {1}{2} b \cos (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx}{3 \left (a^2-b^2\right )}\\ &=-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {8 a b \sin (c+d x)}{3 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} \left (3 a^2+b^2\right )+a b \cos (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 \left (a^2-b^2\right )^2}\\ &=-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {8 a b \sin (c+d x)}{3 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {(4 a) \int \sqrt {a+b \cos (c+d x)} \, dx}{3 \left (a^2-b^2\right )^2}-\frac {\int \frac {1}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 \left (a^2-b^2\right )}\\ &=-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {8 a b \sin (c+d x)}{3 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {\left (4 a \sqrt {a+b \cos (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}} \, dx}{3 \left (a^2-b^2\right )^2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {\sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{3 \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}\\ &=\frac {8 a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 \left (a^2-b^2\right )^2 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}-\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}-\frac {2 b \sin (c+d x)}{3 \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}-\frac {8 a b \sin (c+d x)}{3 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.95, size = 158, normalized size = 0.71 \begin {gather*} \frac {8 a (a+b)^2 \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{3/2} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )-2 (a-b) (a+b)^2 \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{3/2} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )+2 b \left (-5 a^2+b^2-4 a b \cos (c+d x)\right ) \sin (c+d x)}{3 (a-b)^2 (a+b)^2 d (a+b \cos (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.41, size = 489, normalized size = 2.21
method | result | size |
default | \(-\frac {\sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 b \left (a -b \right ) \left (a +b \right ) \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {a -b}{2 b}\right )^{2}}+\frac {16 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a}{3 \left (a -b \right )^{2} \left (a +b \right )^{2} \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b -a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}+\frac {2 \left (3 a -b \right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {\frac {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a -b}{a -b}}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )}{\left (3 a^{3}+3 a^{2} b -3 b^{2} a -3 b^{3}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}-\frac {8 a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {\frac {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a -b}{a -b}}\, \left (\EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )-\EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )\right )}{3 \left (a -b \right ) \left (a +b \right )^{2} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a +b}\, d}\) | \(489\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.15, size = 692, normalized size = 3.13 \begin {gather*} -\frac {6 \, {\left (4 \, a b^{3} \cos \left (d x + c\right ) + 5 \, a^{2} b^{2} - b^{4}\right )} \sqrt {b \cos \left (d x + c\right ) + a} \sin \left (d x + c\right ) - {\left (\sqrt {2} {\left (-i \, a^{2} b^{2} - 3 i \, b^{4}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (i \, a^{3} b + 3 i \, a b^{3}\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (-i \, a^{4} - 3 i \, a^{2} b^{2}\right )}\right )} \sqrt {b} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right ) - {\left (\sqrt {2} {\left (i \, a^{2} b^{2} + 3 i \, b^{4}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} {\left (-i \, a^{3} b - 3 i \, a b^{3}\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (i \, a^{4} + 3 i \, a^{2} b^{2}\right )}\right )} \sqrt {b} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right ) + 12 \, {\left (-i \, \sqrt {2} a b^{3} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} a^{2} b^{2} \cos \left (d x + c\right ) - i \, \sqrt {2} a^{3} b\right )} \sqrt {b} {\rm weierstrassZeta}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right )\right ) + 12 \, {\left (i \, \sqrt {2} a b^{3} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} a^{2} b^{2} \cos \left (d x + c\right ) + i \, \sqrt {2} a^{3} b\right )} \sqrt {b} {\rm weierstrassZeta}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 \, a^{3} - 9 \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) + 2 \, a}{3 \, b}\right )\right )}{9 \, {\left ({\left (a^{4} b^{3} - 2 \, a^{2} b^{5} + b^{7}\right )} d \cos \left (d x + c\right )^{2} + 2 \, {\left (a^{5} b^{2} - 2 \, a^{3} b^{4} + a b^{6}\right )} d \cos \left (d x + c\right ) + {\left (a^{6} b - 2 \, a^{4} b^{3} + a^{2} b^{5}\right )} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b \cos {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________